package entity;

import java.util.Date;

/**
 * User: key
 * ClassName:Book
 * Date: 2023/5/5
 * Time: 18:46
 * description:
 */
public class Book {
    private Integer id;
    private String name;
    private String author;
    private String publish;
    private Date publishDate;
    private Integer page;
    private Double price;
    private String content;

    public Book(Integer id, String name, String author, String publish, Date publishDate, Integer page, Double price, String content) {
        this.id = id;
        this.name = name;
        this.author = author;
        this.publish = publish;
        this.publishDate = publishDate;
        this.page = page;
        this.price = price;
        this.content = content;
    }

    public Book() {
    }

    @Override
    public String toString() {
        return "Book{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", author='" + author + '\'' +
                ", publish='" + publish + '\'' +
                ", publishDate=" + publishDate +
                ", page=" + page +
                ", price=" + price +
                ", content='" + content + '\'' +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getPublish() {
        return publish;
    }

    public void setPublish(String publish) {
        this.publish = publish;
    }

    public Date getPublishDate() {
        return publishDate;
    }

    public void setPublishDate(Date publishDate) {
        this.publishDate = publishDate;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
